package com.ddwl.user.dao.mapper;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.user.dao.model.LoginLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author hemiaojun
 * @Date 2020/9/16 13:55
 */
@Repository
public interface LoginLogMapper extends TkMapper<LoginLog> {
    /**
     * 获取用户登录日志数量
     * @param userId
     * @return
     */
    Integer getCountByUserId(@Param("userId") String userId);

    LoginLog getgetFirstLogin(@Param("loginLog") LoginLog loginLog);
}
